import request from '@/utils/request'
//标的管理API
export default {
    //5、根据标的id查询还款计划
    listLendReturnsByLendId(id){
        return request({
            url:`/admin/core/lendReturn/list/${id}`,
            method:'GET'
        })
    },
    //4、查询标的的投资记录
    listByLendId(id){
        return request({
            url:`/admin/core/lendItem/list/${id}`,
            method:'GET'
        })
    },
    //3、放款
    makeLoad(id){
        return request({
            url:`/admin/core/lend/makeLoan/${id}`,
            method:'POST'
        })
    },
    //2、查询标的详情
    getById(id){
        return request({
            url:`/admin/core/lend/${id}`,
            method:'GET'
        })
    },
    //1、查询标的列表
    list(){
        return request({
            url:`/admin/core/lend`,
            method:'GET'
        })
    }
}